package com.softline.documentsmall.service;

import com.softline.documentsmall.entity.RandomDictionary;
import com.softline.documentsmall.entity.RandomDictionaryVO;

import java.util.List;

public interface RandomDictionaryService {

    /**
     * 根据语种查询随机词条
     * @param type
     * @return
     */
    List<RandomDictionaryVO> listByLanguage(String type);

    /**
     * 随机词条新增
     * @param randomDictionary
     */
    int add(RandomDictionary randomDictionary);

    /**
     * 随机词条删除
     * @param id
     */
    void delete(Integer id);
}
